<?php
require_once('auth.php');
include "connect.php";

include "header.php";
$barcode = $_GET['barcode'];

$sql = "SELECT * FROM books WHERE $barcode";
$query = mysql_query($sql);
$fetch = mysql_fetch_array($query);

echo '<h1>'. $fetch['name'] . '</h1>';
